
<!DOCTYPE html>
<html lang="en" >

        </head>
            
            <meta charset="UTF-8">
            <title>Vue</title>
            <link rel="icon" href="https://cn.vuejs.org/images/icons/android-icon-144x144.png">
        
                <script type="text/javascript" src="https://cdn.jsdelivr.net/npm/vue/dist/vue.js"></script>
                
                <script type="text/javascript" src="https://unpkg.com/vue-router/dist/vue-router.js"></script>
                
                <script type="text/javascript" src="https://unpkg.com/element-ui@2.14.1/lib/index.js"></script>
                
                <link rel="stylesheet" type="text/css" href="https://unpkg.com/element-ui@2.14.1/lib/theme-chalk/index.css">
                
        </head>
        
<body>
    <div id="app">
        <router-view></router-view>
    </div>
    <script type="text/javascript" src="./all/js/script-all-luvbwpzfhi.js"></script>
<link rel="stylesheet" type="text/css" href="./all/css/css-all-amyscthufw.css">
<script type="text/x-template" id="tpl---components-login"><div data---components-login>
    <div>
    <a href="#/about">关于页面</a>
    <router-link to="/login">Go to Foo</router-link>
  </div>
  <el-form ref="loginForm" :model="form" :rules="rules" label-width="80px" class="login-box">
      <h3 class="login-title">欢迎登录</h3>
      <el-form-item label="账号" prop="username" style="display:none">
        <el-input type="text" placeholder="请输入账号" v-model="form.username"/>
      </el-form-item>
      <el-form-item label="密码" prop="password">
        <el-input type="password" placeholder="请输入密码" v-model="form.password"/>
      </el-form-item>
      <el-form-item>
        <el-button type="primary" v-on:click="onSubmit('loginForm')">登录</el-button>
      </el-form-item>
    </el-form>

    <el-dialog
      title="温馨提示"
      :visible.sync="dialogVisible"
      width="30%"
      >
      <span>请输入密码</span>
      <span slot="footer" class="dialog-footer">
          <el-button type="primary" @click="dialogVisible = false">确 定</el-button>
        </span>
    </el-dialog>
  </div></script>
<script type="text/x-template" id="tpl---components-about"><div data---components-about>
		<a href="./index.html">返回首页</a>
	</div></script>
<script>
const routes = [
     {"path": "/", "redirect": "/login"},
     {"path": "/login", "component": login},
     {"path": "/about", "component": about},

    ];
const router = new VueRouter({
    routes
    });
//router.beforeEach((to, from, next) => {
//      if (to.meta.title) {
//       document.title = to.meta.title;
//      }
//      next();
//     });
new Vue({
    el:"#app",   //不可更改
    router: router,
    });
</script>


</body>
</html>
                